<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="../JavaScript/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<title>修改仓库信息</title>
</head>
<body>
 <div>
  <form id="form">
  <table>
  <tr><th><h1>仓库详细信息</h1></th></tr>
  <tr><td>操作类型：</td>
      <td><select name="opType">
                  <option  value="入库">入库</option>
                  <option  value="出库">出库</option>
          </select></td></tr>
  <tr><td>存储化妆品：</td>
	  <td><select name="cos_name">
	            <c:forEach var="i" items="${listc}">
	            <option value="${i.depotinfo_Id}">${i.cosmetic_Name}</option>
	          </c:forEach>
	      </select>
	  </td></tr>
  <tr><td>操作个数：</td><td><input type="text" name="Depot_Count"/></td></tr>
  <tr><td>操作日期：</td><td><input type="text" name="In_Time"/></td></tr>
  <tr><td><input type="button" value="修改" id="update"/></td>
  <td><input type="button" value="返回" onclick="window.open('show.jsp')"/></td></tr>
  </table>
  </form>
  </div>
  <script type="text/javascript">
  	$("#update").click(function () {
  		$.ajax({
  			type:"post",
  			url:"update",
  			data:$("#form").serialize(),
  			success:function(data){
  				alert("  ");
  			}
  		});
  	});
  </script>
</body>
</html>